package com.mxt.moviedemo.dao;


import com.mxt.moviedemo.entity.Actors;
import com.mxt.moviedemo.entity.PageRequest;
import com.mxt.moviedemo.entity.Reviews;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ReviewsMapper {
    List<Reviews> getReviewsByMovieId(int mmid);

    // 根据分页参数查询类别列表
    List<Reviews> getReviewsByPage(PageRequest pageRequest);
    // 查询类别总数
    int getTotalReviews();


    Reviews getReviewsById(int rid);
    List<Reviews> searchReviewsByUid(int uid);
    int addReviews(Reviews reviews);
    boolean updateReviews(Reviews reviews);
    int deleteReviews(int rid);
}